<?php
class ome_goods_import {

    function run(&$cursor_id,$params,&$errmsg){

		 foreach($params['sdfdata'] as $v){
			$mdl = &app::get($params['app'])->model($params['mdl']);
            if(!$mdl->save($v)){
			$m = $mdl->db->errorinfo();
			kernel::log("errmsg = ".$m);
			if(!empty($m)){		
				$errmsg.=$m.";";
			}
			}
        }
        return false;
	}
}